import gl.java.sms.SendSms;

import java.io.IOException;
import java.io.InputStream;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;

public class Test {
	public static void main(String[] args) throws IOException,
			InterruptedException {
		int i = 0;
		while (i < 1000) {
			i++;
			URL rul = new URL(
					"http://192.168.30.22:8080/sms-server/send?tel=15207155981&content=test"+i);
			URLConnection mURLConnection = rul.openConnection();
			mURLConnection.setDoOutput(true);
			 InputStream inputStream = mURLConnection.getInputStream();
			 Thread.sleep(1 * 1000);
			 inputStream.close();
			Thread.sleep(9 * 1000);
			
		}
//		Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 1800));
//		Socket socket = new Socket(proxy);
//		socket.connect(endpoint, timeout);
	}
}
